package com.xiaokang.pojo;

import java.util.Date;

import com.xiaokang.utils.DateUtils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @Description: 飞机实体类
 * @author 小康
 * @version V1.0.0 2019年11月10日 上午7:59:20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Plane {
	private String flightNo;
	private String departureCity;
	private String arrivalCity;
	private Date departureTime;
	private Date arrivalTime;

	@Override
	public String toString() {
		return flightNo + "," + departureCity + " - " + arrivalCity + "," + DateUtils.parseDateToString(departureTime)
				+ " - " + DateUtils.parseDateToString(arrivalTime);
	}
}
